package com.zjj.lbw.service.api.order.feign;

import com.zjj.lbw.common.bean.R;
import feign.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zhanglei.zjj
 * @description gateway-order服务feign客户端
 * @date 2023/8/1 22:35
 */
@FeignClient(value = "gateway-order", path = "/order")
public interface GatewayFeignClient {
    @RequestMapping("/findOrderByUserId/{userId}")
    public R findOrderByUserId(@PathVariable("userId") Integer userId);
}
